import request from '@/utils/request'

export const getPermissionsAPI = () => {
  return request.get('/sys/permission')
}
export const addPermissionsAPI = (data) => {
  return request.post('/sys/permission', data)
}

export const delPermissionsAPI = (id) => {
  return request.delete(`/sys/permission/${id}`)
}

export const getPermissionsAPIxq = (id) => {
  return request.get(`/sys/permission/${id}`)
}

export const editPermissionsAPI = (data) => {
  return request.put(`/sys/permission/${data.id}`, data)
}
